<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>二手交易网</title>
    <link rel="stylesheet" href="css/myCss.css">
    <link rel="icon" href="img/school.jpg">
</head>
<body>
    <div class="nav">
        <a href="index">二手交易网</a>
        <c:if test="${empty sessionScope.user }">
            <a href="login.jsp">登陆</a>
            <a href="register.jsp">注册</a>
        </c:if>
    </div>

    <div class="memu">
        <a href="index"><div class="memuNormal">所有宝贝</div></a><a href="Upload.jsp"><div class="memuAll">上架商品</div></a><a href="goodsTradeInf"><div class="memuNormal">交易信息</div></a>
    </div>

    <form action="goods_GoodsUpload.action" method="post" name="formUpload" enctype="multipart/form-data">
        <div class="upload">
            <h2>上架物品</h2>
            <input type="hidden" name="goods.sellerName" class="form-control" id="user" value="${sessionScope.user.userName}" >
            <input type="text" id="goodsName" name="goods.goodsName" placeholder="货物名称"/>
            <input type="text" id="goodsValue" name="goods.goodsValue" placeholder="货物价值"/>
            <input type="file" name="imageFile" style="border: 0;font-size: 12px;">
            <c:if test="${not empty user}">
                <button type="submit">上传</button>
            </c:if>
            <c:if test="${empty user}">
                <button type="button">请先登陆</button>
            </c:if>
        </div>
    </form>
</body>
</html>